package com.xwltz.web.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

/**
 * @description FileConfig
 * @information on version 1.0 be created by @xwltz at 2021/12/29 16:29
 */

@Configuration
public class FileConfig {
	@Bean
	public CommonsMultipartResolver multipartResolver() {
		CommonsMultipartResolver resolver = new CommonsMultipartResolver();
		resolver.setMaxUploadSize(600000000);
		resolver.setDefaultEncoding("UTF-8");
		return resolver;
	}
}
